package queryfish.user.view;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.border.CompoundBorder;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;

public class OverlayTextArea extends javax.swing.JFrame {
	private JTextField name;
	private  JTextField pass;
	private JPanel panel;
    public static void main(String[] args) {
         OverlayTextArea a = new OverlayTextArea();
         a.show();
    }

    public OverlayTextArea() {
    	this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    	
    	/*try {
    		JLabel label = new JLabel(new ImageIcon(ImageIO.read(new File(".\\image\\backgroundpts1.png"))));
    		this.setContentPane(label);
    	} catch (IOException e) {
    		e.printStackTrace();
    	}*/
    	this.setSize(400, 200);
    	name = new JTextField(20);
    	//name.setOpaque(false);
    	name.setBackground(new Color(255,0,0,0));
    	name.setText("lklk");
    	pass = new JTextField(20);
    	pass.setOpaque(false);
    	pass.setForeground(Color.WHITE);
    	// being lazy: use SwingX 
    	panel = new JPanel();
    	panel.add(name);
    	panel.add(pass);
    	getContentPane().add(panel);

    }

}
